package com.cly.feign.hystrix;

import com.alibaba.fastjson.JSON;
import com.cly.domain.User;
import com.cly.feign.ProdCommUserFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class ProdCommUserFeignHystrix implements ProdCommUserFeign {


    /**
     * 远程调用获取用户集合的方法
     * @param userIds
     * @return
     */
    @Override
    public List<User> getUserList(List<String> userIds) {
        log.error("远程调用获取用户集合失败,用户ids为{}", JSON.toJSONString(userIds));
        return null;
    }
}
